import { request } from '@pkg/request/src';

export enum Api {
  page = '/userGoods/page',
  getVipcardAgreementUrl = '/userGoods/getVipcardAgreementUrl',
}

export const userGoodsPage = (params) =>
  request.get(
    {
      url: Api.page,
      params: params,
    },
    { errorMessageMode: 'none', successMessageMode: 'none' },
  );

export const getVipcardAgreementUrl = (params) =>
  request.get(
    {
      url: Api.getVipcardAgreementUrl,
      params: params,
    },
    { errorMessageMode: 'message' },
  );
